//****************************
//** CImageHigh
//**
//** An image class using IMGDECMP.DLL for decompression.
//**
//****************************

#include <windowsx.h>
#pragma once

class CImageHigh
{
protected:
    HDC m_hScreenDC;
    //BITMAP m_bmBitmap;
    LPTSTR m_sFilename;
    HDC m_hSourceDC;
    HBITMAP m_hOldBitmap;

  
public:
	int m_iHeight;
	int m_iWidth;

    HBITMAP m_hSourceBitmap;


    CImageHigh() { };
    CImageHigh(HDC hdc);
    virtual ~CImageHigh();
    virtual HDC GetSourceDC() { return m_hSourceDC; };
    virtual BOOL BitBlit(HDC hdc, int x, int y);
    virtual BOOL BitBlit(int x, int y);
    virtual BOOL StretchBlit(int x, int y, int dx, int dy);
    virtual BOOL TransBlit(int x, int y, COLORREF clrTrans);

    LPTSTR GetFilename() { return m_sFilename; };
    void SetFilename(LPTSTR sNew) { m_sFilename = sNew; };
    HDC GetScreenDC() { return m_hScreenDC; };
    void SetScreenDC(HDC hNew) { m_hScreenDC = hNew; };

    BOOL Create(int Width, int Height);
    BOOL Load(LPTSTR lpFilename);
    virtual int ImageWidth();
    virtual int ImageHeight();


};

